<?php echo '<?xml version="1.0" encoding="utf-8"?>'?>
<rss version="2.0">
   <channel>
      <title>新媒体营销</title>
      <link>http://zhuanti.blogbus.com/</link>
      <description></description>
      <language>zh-cn</language>
      <copyright>Copyright 2007 BlogBus.com</copyright>

      <lastBuildDate><?= date('r', time()) ?></lastBuildDate>
      
      <?php foreach ($articles as $article): ?>
      <item>
         <title><![CDATA[<?php echo $article->getTitle(); ?>]]></title>
         <description><![CDATA[<?php echo $article->getDescription(); ?>]]></description>

         <link><?php echo 'http://zhuanti.blogbus.com'.url_for('article/show/id/'.$article->getId()) ?></link>
         <guid><?php echo 'http://zhuanti.blogbus.com'.url_for('article/show/id/'.$article->getId()) ?></guid>
        
         <pubDate><?php echo date('r', strtotime($article->getCreated_at())) ?></pubDate>
      </item>
      <?php endforeach; ?>
      
    </channel>
</rss>